package org.apache.click.doubleclick.inject.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation to use for dependency injection.
 *
 * @author Jahid Shohel(development.jsh@gmail.com)
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface InjectBean {

    /**
     * Optional attribute for specifying if proxy injection is needed
     * or real instance. By default real instance is injected.
     *
     * @return Real proxy will be injected if true, otherwise instance
     * will be injected. Default value is false.
     */
    //boolean injectProxy() default false;

    /**
     * Optional attribute for specifying the name of the bean. If not specified, the bean will be
     * looked up by the class type of the field..
     *
     * @return name
     */
    //String beanName() default "";
}
